<div class="tableform" id="order_cost">
	<input type="hidden" name='id' value="<{$ids}>"/>
	<div class="division">
		<{if $data.state=='N'}>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<th><{t}>姓名：<{/t}></th><td><{$data.name}></td>
				<th><{t}>电话：<{/t}></th><td><{$data.phone_setting}>&nbsp;&nbsp;<{$data.tel}></td>
			</tr>
			<tr>
				<th><{t}>反馈信息：<{/t}></th>
				<td colspan="3"><{$data.content}></td>
			</tr>
			<tr>
				<th><{t}>是否已处理：<{/t}></th>
				<td colspan="3"><input type="radio" name="state" value="Y" checked="checked" id="Y"><label for="Y"><{t}>是<{/t}></label> <input type="radio" id="N	" name="state" value="N"><label for="N"><{t}>否<{/t}></label></td>
			</tr>
		</table>
		<div class="table-action">
			<{button label=$___b2c="保存"|t:'b2c' id="btn_do_submit"}>
		</div>
		<{else}>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<th><{t}>姓名：<{/t}></th><td><{$data.name}></td>
				<th><{t}>电话：<{/t}></th><td><{$data.phone_setting}>&nbsp;&nbsp;<{$data.tel}></td>
			</tr>
			<tr>
				<th><{t}>反馈信息：<{/t}></th><td colspan="3"><{$data.content}></td>
			</tr>
		</table>
		<{/if}>
	</div>
</div>
<{if $data.state == 'N'}>
<script>
	window.addEvent('domready',function(){	
		$('btn_do_submit').addEvent('click', function(){
			new Request({
				url:'index.php?app=b2c&ctl=admin_feedback&act=save_state',
				data:$('order_cost'),
				method:'post',
				onSuccess:function(response){
					if (response == 'success'){
						MessageBox.success('<{t}>操作成功<{/t}>');
						location.reload();
					}else{
					    var meg = JSON.decode(response);
					    MessageBox.error('<{t}>'+meg.error+'<{/t}>');
					}
				}
			}).send();
		});
	});
</script>
<{/if}>